﻿function createImage()
{
          var bookid  = document.getElementById("ISBN").innerHTML;
          var img = document.getElementById("secret");
          img.src = "relayInformation.php?bookid=" + bookid;
          img.width = 0;
          img.height = 0;
   
}

function showCookie()
{
        var cookie = getCookieInfo("AnonymousID");
        alert(cookie);
}

function getCookieInfo(cookie)
{
        RegularXp = "(?:; )?" + cookie + "=([^;]*);?";
        var RegularXpExtract = new RegExp(RegularXp); 
        if (RegularXpExtract.test(document.cookie)) 
        {
            return decodeURIComponent(RegExp["$1"]);
        }
        else
        {
            return null;
        }
}




